obj-m +=driver_test.o
driver_test-objs:= hello.o

KDIR:=/home/share/work/camera/rv1126-atk/kernel

COMPILER=/home/share/work/camera/rv1126-atk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
LD_PATH=/home/share/work/camera/rv1126-atk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld
AR_PATH=/home/share/work/camera/rv1126-atk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar
ARCH_TYPE=arm

ccflags-y += -mfloat-abi=softfp
ldflags-y += -L/home/share/work/camera/rv1126-atk/prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/lib/gcc/arm-linux-gnueabihf/6.3.1 -lgcc -static 

all:
	make CC=$(COMPILER) LD=$(LD_PATH) AR=$(AR_PATH) ARCH=$(ARCH_TYPE) -C $(KDIR) M=$(PWD)  modules

clean:
	make CC=$(COMPILER) LD=$(LD_PATH) ARCH=$(ARCH_TYPE) -C $(KDIR)  M=$(PWD)  clean
